package mvc;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 * 
 * Register mouse events, and pass any data to the Controller.
 * 
 * @author Dylan Swiggett
 *
 */
public class MouseListener extends MouseAdapter{
	Controller controller;
	
	public MouseListener(Controller controller){
		super();
		
		this.controller = controller;
	}
	
	public void mousePressed(MouseEvent evt){
		controller.mousePressed(evt);
	}
	
	public void mouseReleased(MouseEvent evt){
		controller.mouseReleased(evt);
	}
	
	public void mouseClicked(MouseEvent evt){
		controller.mouseClicked(evt);
	}
	
	public void mouseDragged(MouseEvent evt){
		controller.mouseDragged(evt);
	}
}
